package com.qf.common.neo4j.node;

import com.qf.common.neo4j.relativeship.InviteShip;
import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.ArrayList;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author QiuShiju
 * @date 2025/11/7
 * @desc
 */
@Data
public class UserNode {
    @Id
    private Integer id;
    private String name;

    // 邀请关系
    @Relationship(type = "invite",direction = Relationship.Direction.OUTGOING)
    private List<InviteShip> invites = new ArrayList<>();
}
